<!-- 我的弹窗 -->

<template>
  <WebModal medium>
    <WebForm>
      <FormInput label="演练名称" bind="name" required />

      <MyUser />

      <FormTimeRange label="演练时间" bind="beginTime, endTime" future noSecond required />

      <FormSelect label="事件类型" bind="planTypeId, planTypeName" :dict="CORE.DICT.preplan_type" half required />

      <FormSelect label="预案名称" bind="planId, planName" :dict="preplan_selectDict" required />

      <FormSelectMulti label="应急小组" bind="groupId, groupName" :dict="group_selectDict" join required />
    </WebForm>
  </WebModal>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyModal',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb(), CORE.mixSelect('group', 'group_'), CORE.mixSelect('preplan', 'preplan_')],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('./', true, /vue$/)),
}
</script>
